//
//  CMSChartsConfigModel.m
//  CMSCharts
//
//  Created by symbio on 2023/2/20.
//

#import "CMSChartsConfigModel.h"

@implementation CMSChartsConfigModel

+ (nullable NSDictionary<NSString *, id> *)modelCustomPropertyMapper {
    return @{
        @"ID": @"id"
    };
}

- (CMSChartsType)chartType {
    if ([self.type isEqualToString:@"TimeSharing"]) {
        return CMSChartsTypeTimeSharing;
    } else if ([self.type isEqualToString:@"FiveDay"]) {
        return CMSChartsTypeFiveDay;
    } else if ([self.type isEqualToString:@"CandleStick"]) {
        return CMSChartsTypeCandleStick;
    }
    return CMSChartsTypeCandleStick;
}

@end
